package com.flycent.hqhs.bean;

import java.io.Serializable;
import java.util.List;

/**
 * @author fbl
 *  购物车
 */
public class Cart implements Serializable{
	
	private static final long serialVersionUID = -2696903231333917313L;
	
	/** 选中的商品数量 */
	private int chosenQuantity; 
	/**  全部 */
	private int allQuantity;
	/** 应付金额 */
	private float price; 
	/** 原价 */
	private float itemOldPrice; 
	/** 商品总重量，单位：克 */
	private int weight;
	/** 购物车项 */
	private List<CartItem> cartItems;
	/** token */
	private String token;
	
	@Override
	public String toString() {
		return "Cart [chosenQuantity=" + chosenQuantity + ", allQuantity="
				+ allQuantity + ", price=" + price + ", itemOldPrice="
				+ itemOldPrice + ", weight=" + weight + ", cartItems="
				+ cartItems + ", token=" + token + "]";
	}
	public Cart() {
		super();
	}
	public Cart(int chosenQuantity, int allQuantity, float price,
			float itemOldPrice, int weight, List<CartItem> cartItems,
			String token) {
		super();
		this.chosenQuantity = chosenQuantity;
		this.allQuantity = allQuantity;
		this.price = price;
		this.itemOldPrice = itemOldPrice;
		this.weight = weight;
		this.cartItems = cartItems;
		this.token = token;
	}
	public int getChosenQuantity() {
		return chosenQuantity;
	}
	public void setChosenQuantity(int chosenQuantity) {
		this.chosenQuantity = chosenQuantity;
	}
	public int getAllQuantity() {
		return allQuantity;
	}
	public void setAllQuantity(int allQuantity) {
		this.allQuantity = allQuantity;
	}
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	public float getItemOldPrice() {
		return itemOldPrice;
	}
	public void setItemOldPrice(float itemOldPrice) {
		this.itemOldPrice = itemOldPrice;
	}
	public int getWeight() {
		return weight;
	}
	public void setWeight(int weight) {
		this.weight = weight;
	}
	public List<CartItem> getCartItems() {
		return cartItems;
	}
	public void setCartItems(List<CartItem> cartItems) {
		this.cartItems = cartItems;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	

	

}
